import request from "../utils/request.js";

export const insertWork = (data) => {
    return request({
        url: '/workOperation/insert',
        method: 'post',
        data: data
    })
}

export const getWorks = (data) => {
    return request({
        url: '/workOperation/listOfTeacher',
        method: 'get',
        params: data
    })
}

export const getWorksOfStudent = (data) => {
    return request({
        url: '/workOperation/listOfStudent',
        method: 'get',
        params: data
    })
}

export const deleteWork = (data) => {
    return request({
        url: '/workOperation/delete/' + data.id,
        method: 'delete'
    })
}

export const modifyWork = (data) => {
    return request({
        url: '/workOperation/modify',
        method: 'put',
        data: data
    })
}

export const submitWork = (data) => {
    return request({
        url: '/workOperation/submit',
        method: 'post',
        data: data
    })
}




